package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanActCreateOrder;
import com.landeb.shop.huo.bean.BeanActCreateOrderResult;
import com.landeb.shop.huo.bean.BeanCoupon;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by blade on 2016/11/29.
 */

public interface ActCreateOrderRequest {


    @GET("Order/sure")
    Observable<BeanActCreateOrder> getOrder();


    @FormUrlEncoded
    @POST("Order/sure_save")
    Observable<BeanActCreateOrderResult> createOrder(@Field("cart_ids") String cart_ids, @Field("address_id") String address_id,
                                                     @Field("is_bill") int is_bill, @Field("bill_type") String bill_type,
                                                     @Field("bill_title") String bill_title, @Field("bill_content") String bill_content);


    @FormUrlEncoded
    @POST("Coupon/order")
    Observable<BeanCoupon> getCoupon(@Field("money") String money);

}
